package com.sgb.knowledgeshare.entity;

import android.text.TextUtils;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;

public class UserMsgEntity implements Serializable {
    //账户名
    private String accountName;
    //认证时间
    private String authTime;
    //生日（时间戳【单位：毫秒】）
    private String birthday;
    //当前企业id
    private String companyId;
    //当前企业头像
    private String companyImage;
    //当前选择企业名称
    private String companyName;
    //当前选择企业编号
    private String companyNo;
    //注册时间
    private String createTime;
    //（后续废弃）是否认证司机，true表示已认证司机
    private boolean driverAuth;
    //司机审核状态（0 待审核 1 审核通过 2 审核不通过）
    private int driverAuthStatus;
    //邮箱
    private String email;
    //个人头像
    private String headImg;
    //编号
    private String id;
    //身份证号
    private String identityCard;
    //网易云信账号
    private String imAccount;
    //网易云信token
    private String imToken;
    //是否有加入企业
    private boolean joinCompany;
    //主企业头像
    private String mainComImage;
    //主企业名称
    private String mainComName;
    //主企业no
    private String mainComNo;
    //消息条数
    private int msgNum;
    //用户昵称
    private String nickName;
    //用户No
    private String no;
    //当前组织id
    private String organizationId;
    //当前组织头像
    private String organizationImage;
    //当前选择组织名称
    private String organizationName;
    //当前选择组织编号
    private String organizationNo;
    //个人认证[0:未认证,1:已认证]
    private int personalAuth;
    //真实姓名
    private String realName;
    //是否关联企业
    private boolean relevance;
    //性别[0:女，1:男]
    private int sex;
    //当前团队id
    private String teamId;
    //当前团队头像
    private String teamImage;
    //当前选择团队名称
    private String teamName;
    //当前选择团队编号
    private String teamNo;
    //手机号
    private String telPhone;
    //当前用户：0个人，1企业，2团队
    private int type;
    //用户名
    private String username;

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getAuthTime() {
        return authTime;
    }

    public void setAuthTime(String authTime) {
        this.authTime = authTime;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCompanyImage() {
        return companyImage;
    }

    public void setCompanyImage(String companyImage) {
        this.companyImage = companyImage;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public boolean isDriverAuth() {
        return driverAuth;
    }

    public void setDriverAuth(boolean driverAuth) {
        this.driverAuth = driverAuth;
    }

    public int getDriverAuthStatus() {
        return driverAuthStatus;
    }

    public void setDriverAuthStatus(int driverAuthStatus) {
        this.driverAuthStatus = driverAuthStatus;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIdentityCard() {
        return identityCard;
    }

    public void setIdentityCard(String identityCard) {
        this.identityCard = identityCard;
    }

    public String getImAccount() {
        return imAccount;
    }

    public void setImAccount(String imAccount) {
        this.imAccount = imAccount;
    }

    public String getImToken() {
        return imToken;
    }

    public void setImToken(String imToken) {
        this.imToken = imToken;
    }

    public boolean isJoinCompany() {
        return joinCompany;
    }

    public void setJoinCompany(boolean joinCompany) {
        this.joinCompany = joinCompany;
    }

    public String getMainComImage() {
        return mainComImage;
    }

    public void setMainComImage(String mainComImage) {
        this.mainComImage = mainComImage;
    }

    public String getMainComName() {
        return mainComName;
    }

    public void setMainComName(String mainComName) {
        this.mainComName = mainComName;
    }

    public String getMainComNo() {
        return mainComNo;
    }

    public void setMainComNo(String mainComNo) {
        this.mainComNo = mainComNo;
    }

    public int getMsgNum() {
        return msgNum;
    }

    public void setMsgNum(int msgNum) {
        this.msgNum = msgNum;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String getOrganizationImage() {
        return organizationImage;
    }

    public void setOrganizationImage(String organizationImage) {
        this.organizationImage = organizationImage;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    public String getOrganizationNo() {
        return organizationNo;
    }

    public void setOrganizationNo(String organizationNo) {
        this.organizationNo = organizationNo;
    }

    public int getPersonalAuth() {
        return personalAuth;
    }

    public void setPersonalAuth(int personalAuth) {
        this.personalAuth = personalAuth;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public boolean isRelevance() {
        return relevance;
    }

    public void setRelevance(boolean relevance) {
        this.relevance = relevance;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getTeamId() {
        return teamId;
    }

    public void setTeamId(String teamId) {
        this.teamId = teamId;
    }

    public String getTeamImage() {
        return teamImage;
    }

    public void setTeamImage(String teamImage) {
        this.teamImage = teamImage;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getTeamNo() {
        return teamNo;
    }

    public void setTeamNo(String teamNo) {
        this.teamNo = teamNo;
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取当前用户身份头像(旧版,后期废除)
     */
    public String getCurrentIdentityLogo() {
        if (type == 0) {
            return headImg;
        } else if (type == 1) {
            return companyImage;
        } else if (type == 2) {
            return teamImage;
        } else if (type == 3) {
            return organizationImage;
        }
        return "";
    }

    /**
     * 获取当前用户个人/企业/团队/组织 No(旧版,后期废除)
     */
    public String getCurrentIdentityNo() {
        if (type == 0) {
            return no;
        } else if (type == 1) {
            return companyNo;
        } else if (type == 2) {
            return teamNo;
        } else if (type == 3) {
            return organizationNo;
        }
        return "";
    }

    /**
     * 获取当前用户身份名称
     */
    public String getCurrentIdentityName() {
        if (type == 0) {
            return nickName;
        } else if (type == 1) {
            return companyName;
        } else if (type == 2) {
            return teamName;
        } else if (type == 3) {
            return organizationName;
        }
        return "";
    }
}
